<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>JS - 1.1</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
        <script>
            function changetxt() {
                var txt = document.formulaire.champ;
                txt.value="Bonsoir";
            }
        </script>
    </head>
    <body>
        <form name="formulaire">
            <input type="text" name="champ" value="Bonjour">
            <input type="button" value="Changez texte" onclick="changetxt();">
        </form>    

    </body>
</html>
